package cn.itcast.domain;


import java.util.List;

public class Orders {

  private Integer id;  //订单id
  private Integer user_id; //用户id
  private String number;//订单编号
  private java.sql.Timestamp createtime;
  private String note;

  //建立实体类之间的关联关系,一个订单对应一个用户
  private User user;
  private List<Items> itemsList;

  public List<Items> getItemsList() {
    return itemsList;
  }

  public void setItemsList(List<Items> itemsList) {
    this.itemsList = itemsList;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public long getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUser_id() {
    return user_id;
  }

  public void setUser_id(Integer user_id) {
    this.user_id = user_id;
  }

  public String getNumber() {
    return number;
  }

  public void setNumber(String number) {
    this.number = number;
  }


  public java.sql.Timestamp getCreatetime() {
    return createtime;
  }

  public void setCreatetime(java.sql.Timestamp createtime) {
    this.createtime = createtime;
  }


  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

  @Override
  public String toString() {
    return "Orders{" +
            "id=" + id +
            ", user_id=" + user_id +
            ", number='" + number + '\'' +
            ", createtime=" + createtime +
            ", note='" + note + '\'' +
            ", user=" + user +
            '}';
  }
}
